<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!--选择器权重越高，选中几率越大-->
		<style>
			*{/*权值 0 很容易覆盖*/
				color: #ff5500c !important;
				background: #fff000 !important;
			}
			div{/*权值 1 */
				color: #aaffff;
				background: #ffaaff;
			}
			.dl{/*权值 10*/
				color: #ffaa7f;
				background: #55ff7f;
			}
			div.dl{/*选择器权值之和 权值1+10 11*/
				color: #00557f;
				background: #ff0a0a;
			}
			body div.dl{/*权值 12*/
			    font-size: 25px;
				color: #060606;
				background: #ff0a0a;
			}
			#dl{/*权值100*/
			    font-size: 20px;
				color: #55ff7f;
				background: #fff000;
			}
			div#dl{/*权值101*/
			    font-size: 20px;
				color: #ffaa7f;
				background: #555500;
			}
			div#dl:hover{/*权值111*/
				color: #5555ff;
				background: #ff01e6;
			}
		</style>
	</head>
	<body>
		<div class="dl" id="dl" style="color:red">Lorem ipsum dolor sit amet consectetur adipisicing elit. Eligendi modi, ipsam quasi eius minus praesentium eos minima quod voluptas nulla, amet atque voluptates harum tenetur facere optio veniam, porro ratione.</div>
	</body>
</html>